﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Pad_Examing 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Pad_Examing : Entity 
	{
		public TB_Pad_Examing():base("TB_Pad_Examing") {    _ExamingID=Guid.NewGuid().ToString();}

		#region Model
		private string _ExamingID;
		private string _ExamYear;
		private DateTime? _CreateTiime;
		private string _GroupNo;
		private string _AGT_ID;
		private string _SignedID;
		private string _ExamRoomNO;
		private string _LotNO;
		private string _Name;
		private string _AllowExamID;
		private string _NMT_SignUpID;
		private string _IdentityCard;
		private string _ExamProvince;
		private string _Remark;
		/// <summary>
		/// 主键ID
		/// </summary>
		public string ExamingID
		{
			get{ return _ExamingID; }
			set
			{
				this.OnPropertyValueChange(_.ExamingID,_ExamingID,value);
				this._ExamingID=value;
			}
		}
		/// <summary>
		/// 考试年度
		/// </summary>
		public string ExamYear
		{
			get{ return _ExamYear; }
			set
			{
				this.OnPropertyValueChange(_.ExamYear,_ExamYear,value);
				this._ExamYear=value;
			}
		}
		/// <summary>
		/// 考试时间
		/// </summary>
		public DateTime? CreateTiime
		{
			get{ return _CreateTiime; }
			set
			{
				this.OnPropertyValueChange(_.CreateTiime,_CreateTiime,value);
				this._CreateTiime=value;
			}
		}
		/// <summary>
		/// 分组号
		/// </summary>
		public string GroupNo
		{
			get{ return _GroupNo; }
			set
			{
				this.OnPropertyValueChange(_.GroupNo,_GroupNo,value);
				this._GroupNo=value;
			}
		}
		/// <summary>
		/// 一批考试的考生的标识
		/// </summary>
		public string AGT_ID
		{
			get{ return _AGT_ID; }
			set
			{
				this.OnPropertyValueChange(_.AGT_ID,_AGT_ID,value);
				this._AGT_ID=value;
			}
		}
		/// <summary>
		/// 签到编号
		/// </summary>
		public string SignedID
		{
			get{ return _SignedID; }
			set
			{
				this.OnPropertyValueChange(_.SignedID,_SignedID,value);
				this._SignedID=value;
			}
		}
		/// <summary>
		/// 教室编码
		/// </summary>
		public string ExamRoomNO
		{
			get{ return _ExamRoomNO; }
			set
			{
				this.OnPropertyValueChange(_.ExamRoomNO,_ExamRoomNO,value);
				this._ExamRoomNO=value;
			}
		}
		/// <summary>
		/// 抽签序号
		/// </summary>
		public string LotNO
		{
			get{ return _LotNO; }
			set
			{
				this.OnPropertyValueChange(_.LotNO,_LotNO,value);
				this._LotNO=value;
			}
		}
		/// <summary>
		/// 姓名
		/// </summary>
		public string Name
		{
			get{ return _Name; }
			set
			{
				this.OnPropertyValueChange(_.Name,_Name,value);
				this._Name=value;
			}
		}
		/// <summary>
		/// 准考证号
		/// </summary>
		public string AllowExamID
		{
			get{ return _AllowExamID; }
			set
			{
				this.OnPropertyValueChange(_.AllowExamID,_AllowExamID,value);
				this._AllowExamID=value;
			}
		}
		/// <summary>
		/// 考生号
		/// </summary>
		public string NMT_SignUpID
		{
			get{ return _NMT_SignUpID; }
			set
			{
				this.OnPropertyValueChange(_.NMT_SignUpID,_NMT_SignUpID,value);
				this._NMT_SignUpID=value;
			}
		}
		/// <summary>
		/// 身份证号
		/// </summary>
		public string IdentityCard
		{
			get{ return _IdentityCard; }
			set
			{
				this.OnPropertyValueChange(_.IdentityCard,_IdentityCard,value);
				this._IdentityCard=value;
			}
		}
		/// <summary>
		/// 生源地
		/// </summary>
		public string ExamProvince
		{
			get{ return _ExamProvince; }
			set
			{
				this.OnPropertyValueChange(_.ExamProvince,_ExamProvince,value);
				this._ExamProvince=value;
			}
		}
		/// <summary>
		/// 备注
		/// </summary>
		public string Remark
		{
			get{ return _Remark; }
			set
			{
				this.OnPropertyValueChange(_.Remark,_Remark,value);
				this._Remark=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ExamingID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ExamingID,
				_.ExamYear,
				_.CreateTiime,
				_.GroupNo,
				_.AGT_ID,
				_.SignedID,
				_.ExamRoomNO,
				_.LotNO,
				_.Name,
				_.AllowExamID,
				_.NMT_SignUpID,
				_.IdentityCard,
				_.ExamProvince,
				_.Remark};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ExamingID,
				this._ExamYear,
				this._CreateTiime,
				this._GroupNo,
				this._AGT_ID,
				this._SignedID,
				this._ExamRoomNO,
				this._LotNO,
				this._Name,
				this._AllowExamID,
				this._NMT_SignUpID,
				this._IdentityCard,
				this._ExamProvince,
				this._Remark};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ExamingID = DataUtils.ConvertValue<string>(reader["ExamingID"]);
			this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
			this._CreateTiime = DataUtils.ConvertValue<DateTime?>(reader["CreateTiime"]);
			this._GroupNo = DataUtils.ConvertValue<string>(reader["GroupNo"]);
			this._AGT_ID = DataUtils.ConvertValue<string>(reader["AGT_ID"]);
			this._SignedID = DataUtils.ConvertValue<string>(reader["SignedID"]);
			this._ExamRoomNO = DataUtils.ConvertValue<string>(reader["ExamRoomNO"]);
			this._LotNO = DataUtils.ConvertValue<string>(reader["LotNO"]);
			this._Name = DataUtils.ConvertValue<string>(reader["Name"]);
			this._AllowExamID = DataUtils.ConvertValue<string>(reader["AllowExamID"]);
			this._NMT_SignUpID = DataUtils.ConvertValue<string>(reader["NMT_SignUpID"]);
			this._IdentityCard = DataUtils.ConvertValue<string>(reader["IdentityCard"]);
			this._ExamProvince = DataUtils.ConvertValue<string>(reader["ExamProvince"]);
			this._Remark = DataUtils.ConvertValue<string>(reader["Remark"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ExamingID = DataUtils.ConvertValue<string>(row["ExamingID"]);
			this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
			this._CreateTiime = DataUtils.ConvertValue<DateTime?>(row["CreateTiime"]);
			this._GroupNo = DataUtils.ConvertValue<string>(row["GroupNo"]);
			this._AGT_ID = DataUtils.ConvertValue<string>(row["AGT_ID"]);
			this._SignedID = DataUtils.ConvertValue<string>(row["SignedID"]);
			this._ExamRoomNO = DataUtils.ConvertValue<string>(row["ExamRoomNO"]);
			this._LotNO = DataUtils.ConvertValue<string>(row["LotNO"]);
			this._Name = DataUtils.ConvertValue<string>(row["Name"]);
			this._AllowExamID = DataUtils.ConvertValue<string>(row["AllowExamID"]);
			this._NMT_SignUpID = DataUtils.ConvertValue<string>(row["NMT_SignUpID"]);
			this._IdentityCard = DataUtils.ConvertValue<string>(row["IdentityCard"]);
			this._ExamProvince = DataUtils.ConvertValue<string>(row["ExamProvince"]);
			this._Remark = DataUtils.ConvertValue<string>(row["Remark"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Pad_Examing");
			/// <summary>
			/// 主键ID
			/// </summary>
			public readonly static Field ExamingID = new Field("ExamingID","TB_Pad_Examing","主键ID");
			/// <summary>
			/// 考试年度
			/// </summary>
			public readonly static Field ExamYear = new Field("ExamYear","TB_Pad_Examing","考试年度");
			/// <summary>
			/// 考试时间
			/// </summary>
			public readonly static Field CreateTiime = new Field("CreateTiime","TB_Pad_Examing","考试时间");
			/// <summary>
			/// 分组号
			/// </summary>
			public readonly static Field GroupNo = new Field("GroupNo","TB_Pad_Examing","分组号");
			/// <summary>
			/// 一批考试的考生的标识
			/// </summary>
			public readonly static Field AGT_ID = new Field("AGT_ID","TB_Pad_Examing","一批考试的考生的标识");
			/// <summary>
			/// 签到编号
			/// </summary>
			public readonly static Field SignedID = new Field("SignedID","TB_Pad_Examing","签到编号");
			/// <summary>
			/// 教室编码
			/// </summary>
			public readonly static Field ExamRoomNO = new Field("ExamRoomNO","TB_Pad_Examing","教室编码");
			/// <summary>
			/// 抽签序号
			/// </summary>
			public readonly static Field LotNO = new Field("LotNO","TB_Pad_Examing","抽签序号");
			/// <summary>
			/// 姓名
			/// </summary>
			public readonly static Field Name = new Field("Name","TB_Pad_Examing","姓名");
			/// <summary>
			/// 准考证号
			/// </summary>
			public readonly static Field AllowExamID = new Field("AllowExamID","TB_Pad_Examing","准考证号");
			/// <summary>
			/// 考生号
			/// </summary>
			public readonly static Field NMT_SignUpID = new Field("NMT_SignUpID","TB_Pad_Examing","考生号");
			/// <summary>
			/// 身份证号
			/// </summary>
			public readonly static Field IdentityCard = new Field("IdentityCard","TB_Pad_Examing","身份证号");
			/// <summary>
			/// 生源地
			/// </summary>
			public readonly static Field ExamProvince = new Field("ExamProvince","TB_Pad_Examing","生源地");
			/// <summary>
			/// 备注
			/// </summary>
			public readonly static Field Remark = new Field("Remark","TB_Pad_Examing","备注");
		}
		#endregion


	}
}

